<?php

class State extends AppModel{
    var $useTable = 'states';
    var $name = 'State';

    var $hasMany = array(
        'TransitionCurrentState' => array(
            'className' => 'Transition',
            'foreignKey' => 'current_state_id'
        ),
        'TransitionNextState' => array(
            'className' => 'Transition',
            'foreignKey' => 'next_state_id'
        ),
        'ActionState' => array(
            'className' => 'ActionState',
            'foreignKey' => 'state_id'
        )
    );
}

?>
